package com.woniuxy.controller;


import com.woniuxy.service.PawnShopWhRelService;
import com.woniuxy.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hujianying
 * @since 2022-03-23
 */
@RestController
@RequestMapping("/pawnShopWhRel")
public class PawnShopWhRelController {

    @Resource
    private PawnShopWhRelService pawnShopWhRelService;

    @GetMapping("/getShopByWhCode")
    @ResponseBody
    public Result getShopByWhCode(String whCode){
        System.out.println(whCode);
        Result shopByWhCode = pawnShopWhRelService.getShopByWhCode(whCode);
        return shopByWhCode;
    }
}

